//
//  MLDTempViewController.swift
//  Sina
//
//  Created by 万世豪情 on 15/10/13.
//  Copyright © 2015年 万世豪情. All rights reserved.
//

import UIKit

class MLDTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "当前是第\(navigationController!.childViewControllers.count)层"
        view.backgroundColor = UIColor.whiteColor()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    @objc private func back(){
        navigationController?.popViewControllerAnimated(true)
    }
    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        navigationController?.pushViewController(MLDTempViewController(), animated: true)
    }

    

}
